	</div><!-- #main -->
	
</div><!-- #wrapper -->	

<?php $blogName = get_bloginfo('name'); ?>

<div id="footer">
	<div id="colophon">	
		<div class="footer-box">
			<h4><?php echo $blogName; ?>.ro</h4>
			<div><a href="<?php echo esc_url( get_permalink( get_page_by_title( 'Acasa' ) ) ); ?>" title="Acasa">Acasa</a></div>
			<div><a href="<?php echo esc_url( get_permalink( get_page_by_title( 'Categorii' ) ) ); ?>" title="Categorii">Categorii</a></div>
			<div><a href="<?php echo esc_url( get_permalink( get_page_by_title( 'Despre noi' ) ) ); ?>" title="Despre noi">Despre noi</a></div>
			<div><a href="<?php echo esc_url( get_permalink( get_page_by_title( 'Contact' ) ) ); ?>" title="Contact">Contact</a></div>
		</div>
		<div class="footer-box">
			<h4>Categorii</h4>
			<?php 
				$categories = get_categories(array('exclude' => '0', 'orderby' => 'name'));					
				foreach($categories as $category) {
					if ($category->parent == 0){
						echo '<div><a href="'.get_category_link($category->term_id).'" title="'.$category->cat_name.'">'. $category->cat_name.'</a></div>';
					}
				}
			?>
		</div>
		<div class="footer-box">
			<h4>Legal</h4>
			<div><a href="<?php echo esc_url( get_permalink( get_page_by_title( 'Termeni si conditii' ) ) ); ?>" title="Termeni si conditii">Termeni si conditii</a></div>
			<div><a href="<?php echo esc_url( get_permalink( get_page_by_title( 'Confidentialitate' ) ) ); ?>" title="Confidentialitate">Confidentialitate</a></div>
		</div>
		<div class="footer-box">
			<h4>Social</h4>
			<div><a href="<?php echo get_option("esf_facebook_url"); ?>" class="small-socials-sprite sprite-small-facebook footer-facebook " title="<?php echo $blogName; ?>.ro pe Facebook" target="_blank">Facebook</a></div>
			<div><a href="<?php echo get_option("esf_google_plus_url"); ?>" class="small-socials-sprite sprite-small-google footer-google" title="<?php echo $blogName; ?>.ro pe Google+" target="_blank">Google+</a></div>
			<div><a href="<?php echo get_option("esf_twitter_url"); ?>" class="small-socials-sprite sprite-small-twitter footer-twitter" title="<?php echo $blogName; ?>.ro pe Twitter" target="_blank">Twitter</a></div>
			<div><a href="<?php echo get_bloginfo('rss2_url'); ?>" class="small-socials-sprite sprite-small-rss footer-rss" title="Feed-ul <?php echo $blogName; ?>.ro" target="_blank">RSS</a></div>
		</div>		
	</div><!-- #colophon -->
	<div id="site-info">
		<p>Copyright 2012 <?php echo $blogName; ?>.ro | <?php echo get_option("esf_footer_message"); ?></p>
		<a href="#wrapper" class="scrollTop right footerScrollTop">Sus</a>
	</div>
</div><!-- #footer -->

<?php wp_footer(); ?>
<input type="hidden" id="hdnTempDirectory" value="<?php bloginfo('template_directory'); ?>" />
</body>
</html>